package org.tissou.server.Services;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;
import org.tissou.client.Services.CategorieService;
import org.tissou.client.Services.CategorieInfos;
import org.tissou.server.Base.Categorie;
import org.tissou.server.Utils.InterfaceMySQL;

/**
 * Created by IntelliJ IDEA.
 * User: Manu
 * Date: 14 mars 2009
 * Time: 18:04:49
 * To change this template use File | Settings | File Templates.
 */
public class CategorieServiceImpl extends RemoteServiceServlet implements CategorieService {

    public CategorieInfos donneCategorie(String nomApproximatif) {
      Categorie CategorieTout =  Categorie.chargeage(0, new InterfaceMySQL());
       return CategorieTout.rechercherCategorieDansDescendance(nomApproximatif).getInfos();
    }
}